//
//  YiDongSubscription.h
//  QiYReader
//
//  Created by 奇阅科技 on 15/3/5.
//  Copyright (c) 2015年 奇阅科技. All rights reserved.
//

#import <UIKit/UIKit.h>
@class Book;
@interface YiDongSubscription : UIView<UIAlertViewDelegate>
//默认移动基地订阅过程封装，目前只支持单章订阅
//默认先清除[AppDelegate delegate].window上的MBProgressHUD
@property (weak, nonatomic) IBOutlet UIView *centreView;
@property (weak, nonatomic) IBOutlet UILabel *titleNameLabel;
@property (weak, nonatomic) IBOutlet UITextField *textField1;
@property (weak, nonatomic) IBOutlet UITextField *textField2;
@property (weak, nonatomic) IBOutlet UIButton *sureButtom;
@property (weak, nonatomic) IBOutlet UILabel *notesLabel;
@property (weak, nonatomic) IBOutlet UIButton *regsterButton;
@property (weak, nonatomic) IBOutlet UIButton *forgetPWButton;

@property (weak, nonatomic) IBOutlet UIView *subscriptionView;
@property (weak, nonatomic) IBOutlet UILabel *subNotesLabel;
@property (weak, nonatomic) IBOutlet UIWebView *subWebView;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *subWebActivity;

@property (weak, nonatomic) IBOutlet UIView *regsterView;
@property (weak, nonatomic) IBOutlet UILabel *regsterTitleLabel;
@property (weak, nonatomic) IBOutlet UILabel *regsterNeedKnowLabel;
@property (weak, nonatomic) IBOutlet UILabel *regsterNoteLabel;

@property (nonatomic,strong)Book *book;
@property (nonatomic,strong)NSString *chapterId;
@property (nonatomic, copy) void(^succeedSubscription)(void);
@property (nonatomic, copy) void(^failSubscription)(void);
@property (nonatomic, copy) void(^cancelSubscription)(void);
-(void)beginVerificationReadPermissionsSucceed:(void(^)(void))succeedRefresh Fail:(void(^)(void))failRefresh Cancel:(void(^)(void))cancelRefresh;

- (IBAction)closeView:(id)sender;
- (IBAction)sureButtonClick:(id)sender;

@end
